home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / t / teach241.zip / {PERTIL.CHP < prev    next >
Text File  |  1992-11-16  |  4KB  |  113 lines

  1. 1      =  Q 1  =  17
  2. ;
  3. STUDY
  4. Percent Signs - Common Use
  5. Rule:r...1....:....2....:....3....:....4....:....5....:....6....:....7....:
  6.  
  7. █▄▄▄▄▄▄▄▄▄▄▄▄█     Percent signs require special treatment.
  8. █▓▓▓▓▓▓▓▓▓▓▓▓█
  9. █┤ Library  ├█     Although there are two ways to enter them, the way
  10. █┤  OPEN!   ├█     that always works is to preface them with a tilde.
  11. █▓▓▓▓▓▓▓▓▓▓▓▓█
  12. █▀█▀█▀█▀█▀██▀█     EXAMPLE: That is 10~% off.
  13. █▀▀▀▀▀▀▀▀▀▀▀▀█
  14.                    It displays fine. In the editor one sees the tilde.
  15. ;
  16. ;
  17. 17      =  Q 2  =  33
  18. ;
  19. KB
  20. Sample: Completion Question with ~% in answer.
  21. Rule:r...1....:....2....:....3....:....4....:....5....:....6....:....7....:
  22.  
  23.  ███████████       There is no way to write a Completion question with
  24.  █  Type   █         a percent (~%) or tilde (~~~~~) answer.
  25.  █ answer  █
  26.  █▄▄▄▄▄▄▄▄▄█       However, questions can be asked in other ways.
  27. ▄▄█▄▄▄█▄▄▄█▄▄
  28. █:::::::::::█      Example:  What number is associated with the
  29. ▀▀▀▀▀▀▀▀▀▀▀▀▀       command line parameter for a file's name?
  30.  
  31. 0
  32. None
  33. 33      =  Q 3  =  49
  34. ;
  35. MC4
  36. Sample: Question with ~% in answer - nothing special (would work with tildes)
  37. Rule:r...1....:....2....:....3....:....4....:....5....:....6....:....7....:
  38.  
  39.  
  40.   John is 20 years old.  Mary is 10 years old.  How much older is John
  41. than Mary?
  42.  
  43.        25~%                                     50~%
  44.  
  45.        75~%                                     100~%
  46.  
  47. D
  48. Note, in editor, there is a tilde after each percent.
  49. 49      =  Q 4  =  65
  50. ;
  51. STUDY
  52. Actually, if ~% is followed by a space it works - special case
  53. Rule:r...1....:....2....:....3....:....4....:....5....:....6....:....7....:
  54.  
  55. █▄▄▄▄▄▄▄▄▄▄▄▄█
  56. █▓▓▓▓▓▓▓▓▓▓▓▓█
  57. █┤ Library  ├█    The percent rule is that one can not use a "~%" sign
  58. █┤  OPEN!   ├█    as part of an input answer.
  59. █▓▓▓▓▓▓▓▓▓▓▓▓█
  60. █▀█▀█▀█▀█▀██▀█    And, to enter the percent sign preface it with a
  61. █▀▀▀▀▀▀▀▀▀▀▀▀█    tilde (~%).
  62.  
  63. ; = text ends on previous line
  64. ; =end
  65. 65      =  Q 5  =  81
  66. ;
  67. STUDY
  68. Display Tilde
  69. Rule:r...1....:....2....:....3....:....4....:....5....:....6....:....7....:
  70.  
  71. █▄▄▄▄▄▄▄▄▄▄▄▄█   Tildes are not supported by the CAI Utilities, such as
  72. █▓▓▓▓▓▓▓▓▓▓▓▓█   CAI Renumber at this time.
  73. █┤ Library  ├█
  74. █┤  OPEN!   ├█   However, they can be displayed as part of all questions.
  75. █▓▓▓▓▓▓▓▓▓▓▓▓█                                                       
  76. █▀█▀█▀█▀█▀██▀█   You just can't have a tilde or percent sign as part 
  77. █▀▀▀▀▀▀▀▀▀▀▀▀█     of the answer for a fill-in. (It can be part of the
  78.                    question.)
  79. ;
  80. ;
  81. 81      =  Q 6  =  97
  82. ;
  83. STUDY
  84. Tildes
  85. Rule:r...1....:....2....:....3....:....4....:....5....:....6....:....7....:
  86.  
  87. █▄▄▄▄▄▄▄▄▄▄▄▄█   To illustrate, the grave is used rather than a tilde.
  88. █▓▓▓▓▓▓▓▓▓▓▓▓█
  89. █┤ Library  ├█   Tildes may be displayed by entering four (````),
  90. █┤  OPEN!   ├█   but they will not pass the CAI Utilities.
  91. █▓▓▓▓▓▓▓▓▓▓▓▓█
  92. █▀█▀█▀█▀█▀██▀█   Simply develop your program, inserting four graves for
  93. █▀▀▀▀▀▀▀▀▀▀▀▀█   each tilde, and when finished replace those with tildes.
  94. However, do not use the utilities again or they will be erased.
  95. ;
  96. ;
  97. 97      =  Q 7  =  113
  98. ;      [move ` item three spaces right when changed to tildes)
  99. MC4
  100. To make these display as tildes, change the graves (`), to tildes (````).
  101. Ruler...................................................end=
  102. A computer has two characters that may be unusual to you.  One is the
  103. grave accent, and the second is the tilde.  Which is the tilde.
  104.  
  105.  
  106.  
  107.        The "~~~~" character                    The "`" character
  108.  
  109.        The "|" character                       The "&" character
  110.  
  111. A
  112. The CAI Utilities will not process the tildes.
  113.